import Test1 from './Test1.vue'
import {Component} from "vue";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

interface GlobalCompents{
    [key: string]: Component
}
const allGobleComponents: GlobalCompents = {Test1}
export default {
    install: app => {
        Object.keys(allGobleComponents).forEach(key => {
            app.component(key, allGobleComponents[key])
        })
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
        }
    }
}